import request from '@/utils/request'

// 查询收益列表
export function listCharge_user_income(query) {
  return request({
    url: '/charge/charge_user_income/list',
    method: 'get',
    params: query
  })
}

// 查询收益详细
export function getCharge_user_income(id) {
  return request({
    url: '/charge/charge_user_income/' + id,
    method: 'get'
  })
}

// 新增收益
export function addCharge_user_income(data) {
  return request({
    url: '/charge/charge_user_income',
    method: 'post',
    data: data
  })
}

// 修改收益
export function updateCharge_user_income(data) {
  return request({
    url: '/charge/charge_user_income',
    method: 'put',
    data: data
  })
}

// 删除收益
export function delCharge_user_income(id) {
  return request({
    url: '/charge/charge_user_income/' + id,
    method: 'delete'
  })
}
